package com.social.service;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.social.dao.TopicCategoryMapper;
import com.social.dao.model.TopicCategory;
import com.social.dao.model.TopicCategoryExample;
import com.social.daoEx.TopicCategoryMapperEx;
import com.social.daoEx.model.TopicCategoryEx;

@Service
public class TopicCategoryService {
    @Autowired
    private TopicCategoryMapper topicCategoryMapper;
    @Autowired
    private TopicCategoryMapperEx topicCategoryMapperEx;

    private static final Logger logger = Logger.getLogger(TopicCategoryService.class);

    public int countByExample(TopicCategoryExample example) {
        return this.topicCategoryMapper.countByExample(example);
    }

    public TopicCategory selectByPrimaryKey(String id) {
        return this.topicCategoryMapper.selectByPrimaryKey(id);
    }

    public List<TopicCategory> selectByExample(TopicCategoryExample example) {
        return this.topicCategoryMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.topicCategoryMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TopicCategory record) {
        return this.topicCategoryMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TopicCategory record) {
        return this.topicCategoryMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(TopicCategoryExample example) {
        return this.topicCategoryMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(TopicCategory record, TopicCategoryExample example) {
        return this.topicCategoryMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(TopicCategory record, TopicCategoryExample example) {
        return this.topicCategoryMapper.updateByExample(record, example);
    }

    public int insert(TopicCategory record) {
        return this.topicCategoryMapper.insert(record);
    }

    public int insertSelective(TopicCategory record) {
        return this.topicCategoryMapper.insertSelective(record);
    }

	public TopicCategoryEx selectDetail(Map<String, Object> map) {
		return topicCategoryMapperEx.selectDetail(map);
	}

	public List<TopicCategoryEx> selectAppList(Map<String, Object> map) {
		return topicCategoryMapperEx.selectAppList(map);
	}
}